home *** CD-ROM | disk | FTP | other *** search
- class classes.fx.Randoms
- {
- var num;
- var freq;
- var typeArray;
- var c;
- var c2;
- var Name = "randoms";
- function Randoms(pnum, pfreq, ptypeArray)
- {
- this.num = pnum;
- this.freq = pfreq;
- this.typeArray = ptypeArray.slice();
- this.c = 0;
- this.c2 = this.freq + _root.randRange(-1 * this.freq,this.freq);
- this.c2 *= 1 / _root.dif.speed;
- }
- function main()
- {
- this.c = this.c + 1;
- if(this.c >= this.c2)
- {
- var _loc3_ = random(4);
- _root.createWaveCreator([10,_root.randRange(_root.posArray2[_loc3_][0],_root.posArray2[_loc3_][1]),_root.randRange(_root.posArray2[_loc3_][2],_root.posArray2[_loc3_][3]),this.typeArray[random(this.typeArray.length)],random(this.num) + 1,[_root.dirArray[_loc3_],_root.randRange(100,500),"break"],[["free"],["free"],["free"],["free"],["free"],["free"]]]);
- this.c = 0;
- this.c2 = this.freq + _root.randRange(-1 * this.freq,this.freq);
- this.c2 *= 1 / _root.dif.speed;
- }
- }
- }
-